package com.prs.crm.domain.oa;


import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import com.prs.crm.domain.BaseEntity;

/**
 * OA新闻收藏
 * @author zhoupeng 2012-3-23
 *
 */
@Entity
@Table(name="oa_news_collect")
public class NewsCollect extends BaseEntity{
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	
	@OneToOne
	private News news;
	
	@OneToOne
	private NewsReceive newsReceive;
	
	@ManyToOne
	private NewsCollectType type;  //收藏类别
 
	public NewsReceive getNewsReceive() {
		return newsReceive;
	}

	public void setNewsReceive(NewsReceive newsReceive) {
		this.newsReceive = newsReceive;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public News getNews() {
		return news;
	}

	public void setNews(News news) {
		this.news = news;
	}

	public NewsCollectType getType() {
		return type;
	}

	public void setType(NewsCollectType type) {
		this.type = type;
	}
}
